Introduction
Generate professional marketing scripts automatically using JoggAI’s AI. Provide product information or a topic, and get multiple script variations optimized for your video length and language. Perfect for scaling video content production across multiple products, languages, and platforms.Key Features
Auto-Generate
Create scripts from product info or descriptions
Multiple Styles
Get 3-5 script variations in different styles
Length Optimization
Scripts timed for 15/30/60 second videos
40+ Languages
Generate scripts in any supported language
Workflow Overview
AI script generation is a 2-step asynchronous process:AI script generation typically completes in 10-30 seconds. You can start polling after 15 seconds.
Quick Start
Related API Endpoints
| Endpoint | Purpose | Documentation |
|---|---|---|
POST /v2/ai_scripts | Submit script generation request | API Reference |
GET /v2/ai_scripts/results/{task_id} | Get generated scripts | API Reference |
POST /v2/product | Create product entry | API Reference |
Key Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
language | string | ✅ | Script language (e.g., “english”, “spanish”) |
video_length_seconds | string | ✅ | Video length: “15”, “30”, or “60” |
script_style | string | ✅ | Style: “Don’t Worry”, “Storytime”, “Discovery”, “Data”, “Top 3 reasons”, “Light marketing” |
product_info | object | ✅ | Product information object |
product_info.source_type | string | ✅ | “id” (use product ID) or “details” (provide details) |
product_info.data | object | ✅ | Product data (varies by source_type) |
target_audience | string | ❌ | Target audience description (optional) |
Code Examples
Scenario 1: Generate Scripts from Product ID
Use an existing product to generate scripts:Step 1: Submit Script Generation Request
Save the
task_id - you’ll need it to retrieve your scripts!Step 2: Retrieve Generated Scripts
Wait 15-30 seconds, then retrieve your scripts:Scenario 2: Generate Scripts with Product Details
Provide product details directly without creating a product entry:Step 1: Submit Request with Product Details
Step 2: Retrieve Generated Scripts
Scenario 3: Check Generation Status
Poll to check if scripts are ready:Advanced Examples
Short 15-Second Scripts
Generate punchy scripts for quick social media videos:Multi-Language Scripts
Generate scripts in different languages:Script Style Guide
Understanding different script styles:| Style | Characteristics | Best For |
|---|---|---|
| Storytime | Narrative, engaging, conversational | Products with a journey or transformation |
| Discovery | Exciting, exploratory, unveiling | New or innovative products |
| Don’t Worry | Reassuring, problem-solving | Products that solve pain points |
| Data | Factual, statistics-driven | Tech products, B2B |
| Top 3 Reasons | Clear, structured, benefit-focused | Feature-rich products |
| Light Marketing | Friendly, promotional, upbeat | General products, e-commerce |
The AI automatically generates scripts in multiple styles so you can choose the best fit for your brand and audience.
Use Case Examples
E-commerce Product Descriptions
E-commerce Product Descriptions
Convert product pages into video scripts:
- Use existing product IDs
- Generate in multiple languages for global markets
- Create variations for A/B testing
- Batch process entire catalog
Social Media Content
Social Media Content
Ad Campaign Copy
Ad Campaign Copy
Generate ad scripts quickly:
- Test different messaging angles
- Create urgency with “Don’t Worry” style
- Use “Top 3 Reasons” for clarity
- Localize for different regions
Content Marketing
Content Marketing
Scale video content production:
- Generate scripts for product series
- Create educational content
- Produce weekly tips and tricks
- Maintain consistent messaging
Tips for Best Results
Optimization Tips:- Be specific with product descriptions for better results
- Include key features you want highlighted
- Specify target audience for appropriate tone
- Generate multiple times if not satisfied with first result
- Provide detailed descriptions when using
source_type: "details"
- Wait 15-30 seconds before checking results
- Use product IDs when possible for better consistency
- Generate multiple script variations and compare
- Test different styles for the same product
- Use appropriate video length for your platform
Troubleshooting
Scripts are too generic
Scripts are too generic
Issue: Generated scripts lack specificitySolutions:
- Provide more detailed product descriptions
- Include specific features and benefits
- Specify target audience clearly
- Add unique selling points
- Use
target_audienceparameter
Wrong language or tone
Wrong language or tone
Issue: Scripts don’t match expected language or styleSolutions:
- Verify
languageparameter is correct - Try different
script_styleoptions - Provide
target_audiencedescription - Add context about brand personality in product description
- Check language spelling (e.g., “english” not “English”)
Task stays in processing
Task stays in processing
Issue: Script generation takes longer than expectedSolutions:
- Wait up to 60 seconds before retry
- Check
task_idis correct - Verify API key permissions
- Check product ID exists (if using
source_type: "id") - Contact support if persists > 2 minutes
No scripts generated
No scripts generated
Issue: Response shows completed but no scriptsSolutions:
- Check
data.generated_scriptsarray in response - Verify product information is valid
- Ensure product description is detailed enough
- Try with different
script_style - Retry with simpler product description
Related Documentation
Create Product
Create product entries first
Avatar Videos
Use scripts in avatar videos
Product Videos
Generate videos with AI scripts
Webhook Integration
Automate script generation

